package chixing.day18.thread;

import java.util.Scanner;

public class X {
    public static void main(String[] args) {
//        //等待用户输入时程序会进入阻塞状态
//        Scanner scanner = new Scanner(System.in);
//        System.out.println("请输入你的名字:");
//        //------------------------线程进入阻塞状态  block
//        String name = scanner.next();
//        System.out.println(name);

        int a = 10;
        System.out.println("11111111111111111");
        try {
            Thread.sleep(2000);//sleep()线程进入阻塞状态
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        System.out.println("2222222222222222222");
    }
}
